package com.szt.ynb.server.router.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.szt.ynb.server.router.entity.User;
import com.szt.ynb.server.router.repository.UserRepository;

@Service
public class UserService {
	
	@Autowired
	private UserRepository repo;
	
	public User findByUsername(String username) {
		return repo.findByUserName(username);
	}
	
}
